package com.byl.mvvm.ui.main

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProviders
import com.byl.mvvm.R
import com.byl.mvvm.ui.viewmodel.UserViewModel

/**
 *
 * @ProjectName:    MVVM
 * @Package:        com.byl.mvvm.ui.main
 * @ClassName:      SecondActivity
 * @Description:
 * @Author:  lirui
 * @CreateDate:     2020/9/4 0004 上午 10:07
 */
class SecondActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_second)

        var userViewModel = ViewModelProviders.of(this).get(UserViewModel::class.java)
    }

}